Documents for PDF .NET Edition
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Common Namespace / IStructComparer<T> Interface / Compare Method
The first struct to compare.
The second struct to compare.

In This Topic
    Compare Method
    In This Topic
    Compares two structs and returns a value indicating whether one is less than, equal to, or greater than the other.
    Syntax
    'Declaration
     
    Function Compare( _
       ByRef x As T, _
       ByRef y As T _
    ) As System.Integer
    System.int Compare( 
       ref T x,
       ref T y
    )

    Parameters

    x
    The first struct to compare.
    y
    The second struct to compare.

    Return Value

    A signed integer that indicates the relative values of x and y. Value Meaning Less than 0 x is less than y. 0 x equals y. Greater than 0 x is greater than y.
    See Also